package com.gxjtkyy.datadistributer.writer.rdbms.entity;

public class TargetInstitution {
   private String orgaCode;
   private String orgaName;
   private Integer orgaLevel;
   private String generalId;

   public String getOrgaCode() {
      return this.orgaCode;
   }

   public String getOrgaName() {
      return this.orgaName;
   }

   public Integer getOrgaLevel() {
      return this.orgaLevel;
   }

   public String getGeneralId() {
      return this.generalId;
   }

   public void setOrgaCode(final String orgaCode) {
      this.orgaCode = orgaCode;
   }

   public void setOrgaName(final String orgaName) {
      this.orgaName = orgaName;
   }

   public void setOrgaLevel(final Integer orgaLevel) {
      this.orgaLevel = orgaLevel;
   }

   public void setGeneralId(final String generalId) {
      this.generalId = generalId;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof TargetInstitution)) {
         return false;
      } else {
         TargetInstitution other = (TargetInstitution)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label59: {
               Object this$orgaLevel = this.getOrgaLevel();
               Object other$orgaLevel = other.getOrgaLevel();
               if (this$orgaLevel == null) {
                  if (other$orgaLevel == null) {
                     break label59;
                  }
               } else if (this$orgaLevel.equals(other$orgaLevel)) {
                  break label59;
               }

               return false;
            }

            Object this$orgaCode = this.getOrgaCode();
            Object other$orgaCode = other.getOrgaCode();
            if (this$orgaCode == null) {
               if (other$orgaCode != null) {
                  return false;
               }
            } else if (!this$orgaCode.equals(other$orgaCode)) {
               return false;
            }

            Object this$orgaName = this.getOrgaName();
            Object other$orgaName = other.getOrgaName();
            if (this$orgaName == null) {
               if (other$orgaName != null) {
                  return false;
               }
            } else if (!this$orgaName.equals(other$orgaName)) {
               return false;
            }

            Object this$generalId = this.getGeneralId();
            Object other$generalId = other.getGeneralId();
            if (this$generalId == null) {
               if (other$generalId != null) {
                  return false;
               }
            } else if (!this$generalId.equals(other$generalId)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof TargetInstitution;
   }

   public int hashCode() {
//      int PRIME = true;
      int result = 1;
      Object $orgaLevel = this.getOrgaLevel();
      result = result * 59 + ($orgaLevel == null ? 43 : $orgaLevel.hashCode());
      Object $orgaCode = this.getOrgaCode();
      result = result * 59 + ($orgaCode == null ? 43 : $orgaCode.hashCode());
      Object $orgaName = this.getOrgaName();
      result = result * 59 + ($orgaName == null ? 43 : $orgaName.hashCode());
      Object $generalId = this.getGeneralId();
      result = result * 59 + ($generalId == null ? 43 : $generalId.hashCode());
      return result;
   }

   public String toString() {
      String var10000 = this.getOrgaCode();
      return "TargetInstitution(orgaCode=" + var10000 + ", orgaName=" + this.getOrgaName() + ", orgaLevel=" + this.getOrgaLevel() + ", generalId=" + this.getGeneralId() + ")";
   }
}
